package com.haikesi.api.user.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class UserUpdatePasswordVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "用户ID（不传则是修改当前登陆用户密码）")
    private String id;
    @ApiModelProperty(value = "原来登陆密码")
    @NotNull(message = "原来登陆密码不能为空")
    private String oldUserPassword;
    @NotNull(message = "新密码不能为空")
    private String userPassword;



}